.class public Lcom/estrongs/android/ui/dialog/n;
.super Ljava/lang/Object;
.source "ChooseNetworkDialog.java"


# instance fields
.field public a:Lcom/estrongs/android/ui/dialog/q;

.field private b:Landroid/content/Context;

.field private c:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/n;->b:Landroid/content/Context;

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const v0, 0x7f0c036f

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/n;->c:Landroid/view/View;

    const v0, 0x7f0904cc

    .line 4
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/GridView;

    .line 5
    new-instance v0, Lcom/estrongs/android/ui/adapter/a;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/n;->b:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/adapter/a;-><init>(Landroid/content/Context;)V

    .line 6
    invoke-virtual {p1, v0}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 7
    new-instance v0, Lcom/estrongs/android/ui/dialog/n$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/n$a;-><init>(Lcom/estrongs/android/ui/dialog/n;)V

    .line 8
    invoke-virtual {p1, v0}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 9
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/n;->b:Landroid/content/Context;

    invoke-direct {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v0, 0x7f11008c

    .line 10
    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/n;->c:Landroid/view/View;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/n;->a:Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/n;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/n;->b:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/n;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/ui/dialog/n;->a(Ljava/lang/String;Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 2

    if-eqz p2, :cond_0

    .line 3
    invoke-static {p1, p2}, Les/j30;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    if-eqz p2, :cond_0

    const-string v0, "fake"

    const-string v1, "/"

    .line 4
    invoke-static {p1, p2, v0, v1}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method


# virtual methods
.method public a()Z
    .locals 1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/n;->a:Lcom/estrongs/android/ui/dialog/q;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public b()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/n;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method
